package com.chuangjiangx.member.stored.dao.model;

import java.math.BigDecimal;
import java.util.Date;

public class InMbrStoredStream {
    private Long id;

    private Long memberId;

    private BigDecimal amount;

    private BigDecimal postTradingBalance;

    private Byte type;

    private Long pid;

    private Date createTime;

    private Date updateTime;

    private String remark;

    private Long mbrOrderId;

    private Long mbrRefundId;

    private Long merchantUserId;

    private Long storeUserId;

    private Long storeId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPostTradingBalance() {
        return postTradingBalance;
    }

    public void setPostTradingBalance(BigDecimal postTradingBalance) {
        this.postTradingBalance = postTradingBalance;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Long getMbrOrderId() {
        return mbrOrderId;
    }

    public void setMbrOrderId(Long mbrOrderId) {
        this.mbrOrderId = mbrOrderId;
    }

    public Long getMbrRefundId() {
        return mbrRefundId;
    }

    public void setMbrRefundId(Long mbrRefundId) {
        this.mbrRefundId = mbrRefundId;
    }

    public Long getMerchantUserId() {
        return merchantUserId;
    }

    public void setMerchantUserId(Long merchantUserId) {
        this.merchantUserId = merchantUserId;
    }

    public Long getStoreUserId() {
        return storeUserId;
    }

    public void setStoreUserId(Long storeUserId) {
        this.storeUserId = storeUserId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", memberId=").append(memberId);
        sb.append(", amount=").append(amount);
        sb.append(", postTradingBalance=").append(postTradingBalance);
        sb.append(", type=").append(type);
        sb.append(", pid=").append(pid);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", mbrOrderId=").append(mbrOrderId);
        sb.append(", mbrRefundId=").append(mbrRefundId);
        sb.append(", merchantUserId=").append(merchantUserId);
        sb.append(", storeUserId=").append(storeUserId);
        sb.append(", storeId=").append(storeId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InMbrStoredStream other = (InMbrStoredStream) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getPostTradingBalance() == null ? other.getPostTradingBalance() == null : this.getPostTradingBalance().equals(other.getPostTradingBalance()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getMbrOrderId() == null ? other.getMbrOrderId() == null : this.getMbrOrderId().equals(other.getMbrOrderId()))
            && (this.getMbrRefundId() == null ? other.getMbrRefundId() == null : this.getMbrRefundId().equals(other.getMbrRefundId()))
            && (this.getMerchantUserId() == null ? other.getMerchantUserId() == null : this.getMerchantUserId().equals(other.getMerchantUserId()))
            && (this.getStoreUserId() == null ? other.getStoreUserId() == null : this.getStoreUserId().equals(other.getStoreUserId()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getPostTradingBalance() == null) ? 0 : getPostTradingBalance().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getMbrOrderId() == null) ? 0 : getMbrOrderId().hashCode());
        result = prime * result + ((getMbrRefundId() == null) ? 0 : getMbrRefundId().hashCode());
        result = prime * result + ((getMerchantUserId() == null) ? 0 : getMerchantUserId().hashCode());
        result = prime * result + ((getStoreUserId() == null) ? 0 : getStoreUserId().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        return result;
    }
}